package com.bookmarket.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author Chen Zhaoguang
 * @date 2017/12/26 11:20
 */

/**
 * 优惠券
 */
public class Discount {
    private int id;
    private String name;//名称
    private int money;//金额
    private int conditio;//满减条件
    private Date startTime;//开始时间
    private Date endTime;//结束时间
    private int coun;//总数
    private int remain;//余数

    public Discount() {
    }

    public Discount(int id, String name, int money, int conditio, Date startTime, Date endTime, int coun, int remain) {
        this.id = id;
        this.name = name;
        this.money = money;
        this.conditio = conditio;
        this.startTime = startTime;
        this.endTime = endTime;
        this.coun = coun;
        this.remain = remain;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public int getConditio() {
        return conditio;
    }

    public void setConditio(int conditio) {
        this.conditio = conditio;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public int getCoun() {
        return coun;
    }

    public void setCoun(int coun) {
        this.coun = coun;
    }

    public int getRemain() {
        return remain;
    }

    public void setRemain(int remain) {
        this.remain = remain;
    }
}
